package com.cd2cd.code_template.code_template.domain.gen;

import java.io.Serializable;

public class SuperSysIntlData implements Serializable {
    private Integer id;

    /**
     * dataKey
     */
    private String dataKey;

    /**
     * 备注
     */
    private String remark;

    /**
     * 默认显示
     */
    private Integer defaultLabel;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * dataKey
     */
    public String getDataKey() {
        return dataKey;
    }

    /**
     * dataKey
     */
    public void setDataKey(String dataKey) {
        this.dataKey = dataKey;
    }

    /**
     * 备注
     */
    public String getRemark() {
        return remark;
    }

    /**
     * 备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 默认显示
     */
    public Integer getDefaultLabel() {
        return defaultLabel;
    }

    /**
     * 默认显示
     */
    public void setDefaultLabel(Integer defaultLabel) {
        this.defaultLabel = defaultLabel;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", dataKey=").append(dataKey);
        sb.append(", remark=").append(remark);
        sb.append(", defaultLabel=").append(defaultLabel);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperSysIntlData other = (SuperSysIntlData) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDataKey() == null ? other.getDataKey() == null : this.getDataKey().equals(other.getDataKey()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getDefaultLabel() == null ? other.getDefaultLabel() == null : this.getDefaultLabel().equals(other.getDefaultLabel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDataKey() == null) ? 0 : getDataKey().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getDefaultLabel() == null) ? 0 : getDefaultLabel().hashCode());
        return result;
    }
}